<%inherit file="base.html"/>

<p>Welcome ${ user.nickname() }</p>
<h2>Current Projects</h2>
<div class="project_list">
	% for project in projects:
		<div class="project">
			<div class="title">${ project.name }</div>
			<div class="links">
				<a href="/secure/${ project.key().id_or_name() }/">settings</a>
				<a href="/secure/${ project.key().id_or_name() }/">subprojects</a>
				<a href="/secure/${ project.key().id_or_name() }/#configure">configuration info</a>
				<a target="_new" href="http://www.pivotaltracker.com/projects/${ project.pivotal_project_id }/integrations/">pivotal configuration</a>
			</div>
			<div class="info">
				<div class="info_line1 info_line">${ project.subprojects.count() } Subproject(s)</div>
				<div class="info_line2 info_line">${ project.activities_processed or 0 } Activities processed</div>
			</div>
		</div>
	% endfor
</div>
<div class="controls">
	<a class="button add_button" href="/secure/addproject/">Add Project +</a>
</div>
